import request from '@/utils/request'

// 查询药品盘点中间列表
export function listRugInventoryIntermediate(query) {
  return request({
    url: '/drug/rugInventoryIntermediate/list',
    method: 'get',
    params: query
  })
}

// 查询药品盘点中间详细
export function getRugInventoryIntermediate(id) {
  return request({
    url: '/drug/rugInventoryIntermediate/' + id,
    method: 'get'
  })
}

// 新增药品盘点中间
export function addRugInventoryIntermediate(data) {
  return request({
    url: '/drug/rugInventoryIntermediate',
    method: 'post',
    data: data
  })
}

// 修改药品盘点中间
export function updateRugInventoryIntermediate(data) {
  return request({
    url: '/drug/rugInventoryIntermediate',
    method: 'put',
    data: data
  })
}

// 删除药品盘点中间
export function delRugInventoryIntermediate(id) {
  return request({
    url: '/drug/rugInventoryIntermediate/' + id,
    method: 'delete'
  })
}
